<ul class="xsy_buttonbar_list">
    {{each toolbarData as button index}}
        <li>
            <a href="javascript:;" data-id="{{button.id}}" entity-id="{{if button.actionButton}}{{button.actionButton.entityId}}{{/if}}" act="{{if button.actionButton}}{{button.actionButton.action}}{{/if}}" class="xsy_buttonbar_link {{if button.name.indexOf("edit")>=0}}edit{{/if}} {{if button.name.indexOf("create")>=0}}create{{/if}} {{if button.name.indexOf("more")>=0}}more{{/if}} {{if button.name.indexOf("Approval")>=0}}Approval{{/if}}"><i></i>{{if button.name !="more"}}{{if language == "zh-cn"}}{{button.label}}{{else}}{{button.labelEN}}{{/if}}{{/if}}</a>
            {{if button.children.length > 0}}
            <div class="xsy_buttonbar_menu xsy_buttonbar_menu1" style="display:none;">
                <ul>
                    {{each button.children as menu index2}}
                    <li>
                        <a  data-id="{{if menu.entityTypes && menu.entityTypes.length > 0}}{{menu.entityTypes[0].id}}{{/if}}" act="{{if menu.actionButton}}{{menu.actionButton.action}}{{/if}}" entity-id="{{if menu.actionButton}}{{menu.actionButton.entityId}}{{/if}}"  title="{{if language == "zh-cn"}}{{menu.label}}{{else}}{{menu.labelEN}}{{/if}}" class="xsy_buttonbar_item" businessname="{{if language == "zh-cn"}}{{menu.label}}{{else}}{{menu.labelEN}}{{/if}}">
                        <span>{{if language == "zh-cn"}}{{menu.label}}{{else}}{{menu.labelEN}}{{/if}}</span>
                          {{if menu.children.length > 0}}
                            <i class="arrow"></i>
                          {{/if}}
                        </a>

                        {{if menu.children.length > 0}}
                         <div class="xsy_buttonbar_menu xsy_buttonbar_submenu" style="display:none;">
                            <ul>
                                {{each menu.children as submenu index3}}
                                    <li><a  data-id="{{submenu.id}}" entity-id="{{if submenu.actionButton}}{{submenu.actionButton.entityId}}{{/if}}" act="{{if submenu.actionButton}}{{submenu.actionButton.action}}{{/if}}{{if submenu.action}}{{submenu.action}}{{/if}}" title="{{if language == "zh-cn"}}{{submenu.label}}{{else}}{{submenu.labelEN}}{{/if}}" class="xsy_buttonbar_item xsy_buttonbar_subitem" businessname="{{if language == "zh-cn"}}{{menu.label}}{{else}}{{submenu.labelEN}}{{/if}}"><span>
                                        {{if language == "zh-cn"}}{{submenu.label}}{{else}}{{submenu.labelEN}}{{/if}}
                                    </span></a></li>
                                {{/each}}
                            </ul>
                        </div>
                        {{/if}}
                    </li>
                    {{/each}}
                </ul>
            </div>
            {{/if}}
        </li>
    {{/each}}
</ul>
